﻿using ConfExpert.Forms.Base;
using DevTeam;
using System;
using System.Data;

namespace ConfExpert.Forms.Ithalat
{
    public partial class GenelDurum : XForm
    {
        public GenelDurum()
        {
            InitializeComponent();
        }

        private void GenelDurum_Load(object sender, EventArgs e)
        {
            DataSet d = ExecuteDataSet("GetImportListGenelDurum");
            gridView1.Init(d.Tables[0]);
            gridView2.Init(d.Tables[1]);
            gridView1.MakeReadOnly();
            gridView2.MakeReadOnly();
            gridView1.FormatAsNumber(1, "EslesenMasraf", "EslesmeyenMasraf");
            gridView2.FormatAsNumber(1, "EslesenMasraf", "EslesmeyenMasraf");
            gridView1.AddSummary("EslesenMasraf", "EslesmeyenMasraf");
            gridView2.AddSummary("EslesenMasraf", "EslesmeyenMasraf");
            gridView1.FormatAsNumber(3, "EslesmemeOrani");
            gridView2.FormatAsPercentage("EslesmemeOrani");
            gridView1.BestFitColumns();
            gridView2.BestFitColumns();

            xtraTabControl1.SelectedTabPage = tpAy;
        }
    }
}
